package com.gxa.autoparts.portal.service;

import com.gxa.autoparts.core.exception.BusinessException;
import com.gxa.autoparts.core.pojo.Comment;
import com.gxa.autoparts.core.pojo.Order;
import com.gxa.autoparts.core.service.BaseService;

import java.util.List;
import java.util.Map;

public interface MyOrderService extends BaseService<Order> {
    List<Order> checkMyOrder(Long userId);
    void addComment(Long userId,Long goodsId,String context,Integer star);
    Comment checkMyComment(Long userId,Long goodsId) throws BusinessException;
    Double getMoney(Long orderId);
    void overOrder(Long orderId,Long logisticsNumber);
    Map<String,Object> findOrderIdBySerialnNumber(Long serialnNumber);
    Map<String,Object> count(Long userId);
}
